﻿using JTTD.Common.Enum;
using System.ComponentModel.DataAnnotations;

namespace JTTD.Domain.Dtos.System.Request
{
    /// <summary>
    /// 设置系统配置dto
    /// </summary>
    public  class SetConfigRequestDto
    {
        /// <summary>
        /// 配置key
        /// </summary>
        public ConfigTypeEnum Key { get; set; }

        /// <summary>
        /// 配置值
        /// </summary>
        [MaxLength(20,ErrorMessage ="配置值不能超过20个字符")]
        [Required(ErrorMessage ="配置值不能为空")]
        public string Value { get; set; }

        /// <summary>
        /// 配置说明
        /// </summary>
        [MaxLength(200,ErrorMessage ="配置说明不能超过100个汉字")]
        public string Remark { get; set; }
    }
}
